package com.scorpio.basic.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.scorpio.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 首页banner对象 sc_banner
 *
 * @author scorpio
 * @date 2021-10-29
 */
@TableName("sc_banner")
public class BannerEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.AUTO)
    private Long id;

    //图片地址
    private String image;

    //跳转类型;1=无跳转,2=跳转url,3=跳转商品
    private String skipType;

    //跳转参数
    private String skipValue;

    //优先级
    private Integer sort;

    //0=正常,1=停用
    private String status;

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public String getImage() {
        return image;
    }

    public void setSkipType(String skipType) {
        this.skipType = skipType;
    }

    public String getSkipType() {
        return skipType;
    }

    public void setSkipValue(String skipValue) {
        this.skipValue = skipValue;
    }

    public String getSkipValue() {
        return skipValue;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStatus() {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("image", getImage())
                .append("skipType", getSkipType())
                .append("skipValue", getSkipValue())
                .append("sort", getSort())
                .append("status", getStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
